#include<iostream>
using namespace std;

class object {
    private:
        int val;
    public:
        object():val(0) {
            cout << "Default constructor for object" << endl;
        }
        object(int i):val(i) {
            cout << "Constructor for object,val = " << val << endl;
        }

        ~object() {
            cout << "Destructor for object,val = " << val << endl;
        }
};

class container {
    private:
        object one;
        object two;
        int data;
        
    public:
        container():data(0) {
            cout << "Default constructor for container" << endl;
        }

        container(int i,int j,int k);

        ~container() {
            cout << "destructor for container,data = " << data << endl;
        }
};

container::container(int i,int j,int k):two(i),one(j) {
    data = k;
    cout << "Constructor for container,data = " << data << endl;
}

int main() {
    container obj,anObj(5,6,10);
}
